package com.loadmore.baselibrary.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;

import com.loadmore.baselibrary.util.LogUtil;

/**
 * Created by sunleilei on 2017/4/24.
 */

public class LocationService extends Service {

    private Thread thread;

    @Override
    public void onCreate() {
        super.onCreate();
        thread = new Thread();
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        LogUtil.e("  onStartCommand  ");
        operation();
        return super.onStartCommand(intent, flags, startId);
    }

    public void operation() {
        LogUtil.e("operation");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        LogUtil.e("location service has destroyed");
    }
}
